package com.yusj.producer.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloProducerController {
	
	@Value("${server.port:}")
	private String port;
	
	@RequestMapping("/hello/producer")
    public String index(@RequestParam String name) {
        return "producer -> hello "+name+"，this is first messge. port="+port;
    }
}
